package de.thw.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import de.thw.web.dao.TeamDAO;
import de.thw.web.model.Team;
import de.thw.web.service.TeamService;

@Service
public class TeamServiceImpl extends AbstractServiceImpl<Team> implements
		TeamService {

	@Autowired
	private TeamDAO daoTeam;

	// /////////////////////////////////////////////////////////////////////////////

	@Transactional
	public void save(Team object) {
		super.save(object, this.daoTeam);
	};

	@Transactional
	public Team load(String uid) {
		return super.load(uid, this.daoTeam);
	};

	@Transactional
	public List<Team> getAll() {
		return super.getAll(this.daoTeam);
	};

};